# coding=utf-8
# @Author:zcx
# @Time:2024/9/12 19:39
import sys
from PySide6.QtWidgets import QApplication, QWidget, QCalendarWidget
from PySide6.QtCore import QDate

class CanlenderWindow(QWidget):
    def __init__(self):
        super().__init__()
        self.resize(800, 600)

        calendar = QCalendarWidget(self)
        # 默认选中的日期
        print(calendar.selectedDate())
        # 设置默认选中的日期
        calendar.setSelectedDate(QDate(2014, 8, 9))
        # 默认

if __name__ == '__main__':
    app = QApplication(sys.argv)
    win = CanlenderWindow()
    win.show()
    sys.exit(app.exec())
